<@mits.headerDiv />
<div class="Main" id="Main">
	<!--屏幕切换-->
   
    
    
	<!--左边-->
	<!--右边-->
	<div class="Main_body" id="Main_body">
			  <div class="Main_bodyListBar">
				<div class="Main_bodyListBar_head"><span>用户卡口管理</span> </div>
		<@mits.showActionMsg />
	    <div class="Main_bodyListBar_body">
	    <form method="post" action="" id="myform" name="myform">
				<table width="200" border="0" cellpadding="0" cellspacing="1" class="editTable">
            <tbody>
				<tr >
  				<td class="title">用户名:
                <input type="hidden" name="userId" value="${userId?if_exists}" width="1"   class="input_short" id="userId"  />
                ${userName?if_exists}</td>
                </td>				
                				
				</tr>
				<tr >
  	                <td class="title">卡口选择</td>	
				</tr>	
				               
                <#if allPassPorts?exists>
                <#list allPassPorts as allPassPort>
				 <tr >
				 
  	                <td class="content" >
  	               
               
                <input type="checkbox" id="passPortId" name="passPortId" 
                 <#if ownerPassPorts?exists><#list ownerPassPorts as ownerPassPort><#if ownerPassPort.id == allPassPort.id>checked="true"</#if> </#list> </#if> 
                 value="${allPassPort?if_exists.id?if_exists}" />
                ${allPassPort?if_exists.passPortName?if_exists}
               
               
                </td>	
                				
				</tr>
				 </#list>
                </#if>
				</tbody>
				  </table>
				  </form>
			</div>
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button">
				  <input type="button" class="button" onclick="saveOrUpdate()" value="保存" /> 
				   <input type="button" class="button" onclick="window.location='${base}/auth/system/userList.action?cleanSucMsg=true'" value="返回" />
				  </div>
					
				</div>
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
	
</div>
<script lanague="javascript">
 function saveOrUpdate(){
 		trimAllElements($('myform'));
        if(Validator.Validate($('myform'),3)){
 			$('myform').action ="${base}/auth/system/saveUserPassPort.action";
		    $('myform').submit();       
        }
	
		      	     
}   
	
</script>
<@mits.footerDiv />


